package com.qf.entity;

/**
 * 联系人表对应的实体类
 * @author
 */
public class Linkman {

    private Integer id;

    private String name;

    /**
     * 一个联系人对应一个客户
     * 在多的一方，声明 一的一方 的实体类引用，维护了多对一的关系
     */
    private Customer customer;


    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    @Override
    public String toString() {
        return "Linkman{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
